using System;

namespace TSharp.Core.Emit
{
    /// <summary>
    /// Class ArgBuilder
    /// </summary>
    public class ArgBuilder
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ArgBuilder"/> class.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <param name="argType">Type of the arg.</param>
        public ArgBuilder(int index, Type argType)
        {
            Index = index;
            ArgType = argType;
        }

        /// <summary>
        /// Gets or sets the index.
        /// </summary>
        /// <value>The index.</value>
        public int Index { set; get; }
        /// <summary>
        /// Gets or sets the type of the arg.
        /// </summary>
        /// <value>The type of the arg.</value>
        public Type ArgType { set; get; }
    }
}